package org.erp.product.infrastructure.convert;

import org.erp.product.domain.bo.ConnectToInnerAddBo;
import org.erp.product.domain.bo.InspectionTransferLogQueryBo;
import org.erp.product.domain.dto.ConnectToInnerAddDto;
import org.erp.product.domain.dto.InspectionTransferLogQueryDto;
import org.erp.product.domain.dto.ProductInfoQueryDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * 质检调拨实体转换
 *
 * @author libin
 * @version 1.0
 * @description: 质检调拨实体转换
 * @date 2025/11/14 17:29
 **/
@Mapper(componentModel = "spring")
public interface InspectionTransferConvert {

    @Mappings(value = {})
    InspectionTransferLogQueryDto boConvertDto(InspectionTransferLogQueryBo inspectionTransferLogQueryBo);

    @Mappings(value = {})
    ConnectToInnerAddDto boConvertDto(ConnectToInnerAddBo connectToInnerAddBo);

    @Mappings(value = {
            @Mapping(target = "transferType", constant = "2")
    })
    ProductInfoQueryDto dtoConvertDto(InspectionTransferLogQueryDto inspectionTransferLogQueryDto);
}
